package com.zzdz.system.controller;


import com.zzdz.common.entity.ZzdzResponse;
import com.zzdz.system.service.ISelectCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController

public class SelectCommonController {

    @Autowired
    private ISelectCommonService commonService;

    /**
     * 获取字典选择接口
     * @return
     */
    @GetMapping("common/select/dict")
    public ZzdzResponse getDictData(){
        return  new ZzdzResponse().success().data(commonService.getDictList());
    }
}
